package com.arellomobile.android.push;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class PushWebview extends Activity
{
  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    WebView localWebView = new WebView(this);
    String str = getIntent().getStringExtra("url");
    localWebView.getSettings().setJavaScriptEnabled(true);
    localWebView.setWebViewClient(new HelloWebViewClient(null));
    localWebView.loadUrl(str);
    setContentView(localWebView);
  }

  private class HelloWebViewClient extends WebViewClient
  {
    private HelloWebViewClient()
    {
    }

    public boolean shouldOverrideUrlLoading(WebView paramWebView, String paramString)
    {
      PushWebview.this.finish();
      Intent localIntent = new Intent("android.intent.action.VIEW", Uri.parse(paramString));
      PushWebview.this.startActivity(localIntent);
      return false;
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.arellomobile.android.push.PushWebview
 * JD-Core Version:    0.6.2
 */